package com.sg.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.alibaba.dubbo.rpc.cluster.loadbalance.RandomLoadBalance;
import com.sg.service.HelloService;
import org.springframework.transaction.annotation.Transactional;

//添加注解,注解类的接口,对外暴露
//注解属性 interfaceClass = XX.class
@Service(interfaceClass = HelloService.class)
@Transactional
public class HelloServiceImpl implements HelloService {
    @Override
    public String sayHello(String s) {
        return "hello" + s;
    }
}
